package com.ceba.test.task.start;

import com.ceba.test.base.configs.CebaConfig;
import com.ceba.test.modules.storage.job.StorageFileBase;
import com.ceba.test.modules.storage.job.impl.StorageFileJob;
import com.ceba.test.modules.upgrade.service.UpgradeService;
import configs.context.SpringBeans;

public class SystemStartWork {

	/**
	 * 系统启动时做的工作
	 */
	public static void start() {
		try {
			UpgradeService.checkAndUpdateConfig();
		} catch (Exception e) {
			e.printStackTrace();
		}

		//升级 文件管理
		StorageFileBase storageFileBase=new StorageFileJob(SpringBeans.getGStorageAddressLogicService("gStorageAddressLogicService"));
		storageFileBase.start();
		storageFileBase.upgrade();

	}

}
